<?php

// the user will not be asked to login if the cat is feedback 
//( which included feedback and contact form)
if(isset($_GET['cat'])  && ($_GET['cat']=="feedback")) {
	
}
else {
if((!isset($_SESSION['user'])) && (sizeof($_GET)!=0)) 
	{
			$currurl = curPageURL();
		$currurl = urlencode($currurl);
		echo '<script>window.location = "login.php?action=login&gurl='.$currurl.'";</script>';
		die();
	}

}
  
	/*
if(isset($_GET['g']))
	{
		$gpid = $_GET['g'];
		header('Location: index.php?cat=group&gpid='.$gpid.'&action=gausipp');
	} 
	
	*/
	
	if(isset($_SESSION['user']))
  	{	
	$user = $_SESSION['user'];
	$name = $_SESSION['name'];	
  	}	
	else
		session_destroy();
		
	
?>